package com.ly.base;

import org.springframework.security.access.method.P;

/**
 * DataTables响应格式（DataTables前端表格插件）
 * @author ：LY
 * @date ：Created in 2020/11/15 19:03
 * @modified By：
 */
public class ApiDataTableResponse extends ApiResponse {
    private int draw;
    //返回数据的数量
    private long recordsTotal;
    //过滤出来的数据数量
    private long recordsFiltered;

    public ApiDataTableResponse(ApiResponse.Status status){
        this(status.getCode(),status.getStandardMessage(),null);
    }
    public ApiDataTableResponse(int code, String message, Object data) {
        super(code, message, data);

    }

    public int getDraw() {
        return draw;
    }

    public void setDraw(int draw) {
        this.draw = draw;
    }

    public long getRecordsTotal() {
        return recordsTotal;
    }

    public void setRecordsTotal(long recordsTotal) {
        this.recordsTotal = recordsTotal;
    }

    public long getRecordsFiltered() {
        return recordsFiltered;
    }

    public void setRecordsFiltered(long recordsFiltered) {
        this.recordsFiltered = recordsFiltered;
    }
}
